package com.syni.mdd.sjb.common.datatreaure.controller.protect;


import com.syni.mdd.sjb.common.datatreaure.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lcc
 * @since 2020-06-14
 */
@Controller
@RequestMapping("/dxshapp/orders")
public class OrdersController extends BaseController {

    @GetMapping("/data")
    public ModelAndView data(){
        return new ModelAndView(new RedirectView("http://www.baidu.com"));
    }

    @GetMapping("/test")
    public String test(){
        return "view/index";
    }
}
